
<template class="container">
    <WindowTitleBar title="测试"></WindowTitleBar>
    <div style="width: 100%; height: 100%; background-color: #002389;" oncontextmenu=OnContextMenu onclick=OnClick></div>
</template>

<script type="text/lua">
RegisterComponent("WindowTitleBar", "%vue%/Components/WindowTitleBar.html");

function OnContextMenu()
    print("OnContextMenu");
    local event = GetEvent();
    print(event.x, event.y)
end

function OnClick()
    print("OnClick");
end

function OnReady()
end
</script>

<style>
.container {
    height: 100%; 
    width: 100%; 
    padding: 0px 2px 2px 2px;
    background: url(Texture/Aries/Creator/keepwork/Window/dakuang2_32bits.png#0 0 64 69:26 44 24 22);
}
</style>
